/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.bus.entity.UserOpenid;

/**
 * 系统用户与微信用户关联表DAO接口
 * @author lxy
 * @version 2019-07-25
 */
@MyBatisDao
public interface UserOpenidDao extends CrudDao<UserOpenid> {
	/**
	 * 通过openid获取微信对照接口信息
	 * @param openid
	 * @return
	 */
	public UserOpenid getByOpenId(String openid);

	/**
	 * 通过phoneOpenid删除对象
	 * @param phoneOpenid
	 * @return
	 */
	public int deletePhoneOpenid(UserOpenid phoneOpenid);
	/**
	 * 通过用户名获取微信对照接口信息
	 * @param phoneNumber
	 * @return
	 */
	public UserOpenid getByLoginName(String loginName);
}